package com.mmd.tencent.config;

public interface WechatUrlConfig {
    // h5支付url
    String h5PayUrl = "https://api.mch.weixin.qq.com/v3/pay/transactions/h5";
    // pc页面二维码支付url
    String pcPayUrl = "https://api.mch.weixin.qq.com/v3/pay/transactions/native";
    // app支付url
    String appPayUrl = "https://api.mch.weixin.qq.com/v3/pay/transactions/app";
    // jsApi支付url
    String jsApiUrl = "https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi";
    // 合单支付url
    String combineUrl = "https://api.mch.weixin.qq.com/v3/combine-transactions/app";
    // 退款url
    String refundUrl = "https://api.mch.weixin.qq.com/v3/refund/domestic/refunds";

    /*小程序*/
    // 小程序获取AccessToken Url
    String accessTokenUrlMini = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={appid}&secret={appsecret}";
    // 小程序获取用户信息接口
    String loginUrlMini = "https://api.weixin.qq.com/sns/jscode2session?appid={appid}&secret={secret}&js_code={code}&grant_type=authorization_code";
    // 获取h5跳转小程序信息
    String generateUrl = "https://api.weixin.qq.com/wxa/generatescheme?access_token={accesstoken}";


    /*公众号*/
    // 公众号获取用户信息接口
    String loginUrl = "https://api.weixin.qq.com/sns/oauth2/access_token?appid={appid}&secret={secret}&code={code}&grant_type=authorization_code";
    // 获取accessToken
    String unifyAccessTokenUrl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={appid}&secret={secret}";
    // 刷新 accessToken地址
    String accessTokenUrl = "https://api.weixin.qq.com/sns/oauth2/refresh_token?appid={appid}&grant_type=refresh_token&refresh_token={refreshToken}";
    // 获取用户详细信息
    String userinfoUrl = "https://api.weixin.qq.com/sns/userinfo?access_token={accessToken}&openid={openId}&lang=zh_CN";
    // 获取jsapi_ticket
    String jsapiTicket = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token={accessToken}&type=jsapi";
}
